import React,{Component} from 'react'
import {NavLink} from 'react-router-dom'
import RouterView from '../../router/router.view'
class Index extends Component {
    render(){
        return (
            <div className="box">
                <header>
                    <div className="head-l">
                        <span className="iconfont icon-menu-two"></span>
                    </div>
                    <div className="nav">
                        <NavLink to="/index/my">我的</NavLink>
                        <NavLink to="/index/find">发现</NavLink>
                        <NavLink to="/index/yun">云村</NavLink>
                        <NavLink to="/index/video">视频</NavLink>
                    </div>
                    <div className="head-r">
                        <span className="iconfont icon-sousuo"></span>
                    </div>
                </header>
                <RouterView routes={this.props.routes}></RouterView>
            </div>
        )
    }
}
export default Index